﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using AutoMapper;
using MovieDB.Data.Entities;
using MovieDB.Web.ViewModels;

namespace MovieDB.Web.Infrastructure
{
    public static class Mappings
    {
        public static void CreateMappings()
        {
            Mapper.CreateMap<Category, CategoryViewModel>();
            Mapper.CreateMap<CategoryViewModel, Category>()
                .ForMember(x => x.Id, options => options.Ignore());

        }
    }
}